<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 function to_url_string($str) {
   return preg_replace('/[^\d\w]+/', '_', strtolower($str));
 }
 function comma_string($pieces) {
   if(is_array($pieces->getRawValue())) return implode(', ', $pieces->getRawValue());
 }
?>
